import 'package:safetymonitor/generated/json/base/json_convert_content.dart';
import 'package:safetymonitor/app/data/entities/home/enterprise/enterprise_information_entity_entity.dart';

EnterpriseInformationEntityEntity $EnterpriseInformationEntityEntityFromJson(Map<String, dynamic> json) {
  final EnterpriseInformationEntityEntity enterpriseInformationEntityEntity = EnterpriseInformationEntityEntity();
  final int? id = jsonConvert.convert<int>(json['id']);
  if (id != null) {
    enterpriseInformationEntityEntity.id = id;
  }
  final String? createTime = jsonConvert.convert<String>(json['createTime']);
  if (createTime != null) {
    enterpriseInformationEntityEntity.createTime = createTime;
  }
  final int? companyId = jsonConvert.convert<int>(json['companyId']);
  if (companyId != null) {
    enterpriseInformationEntityEntity.companyId = companyId;
  }
  final String? enterpriseName = jsonConvert.convert<String>(json['enterpriseName']);
  if (enterpriseName != null) {
    enterpriseInformationEntityEntity.enterpriseName = enterpriseName;
  }
  final String? enterpriseAddress = jsonConvert.convert<String>(json['enterpriseAddress']);
  if (enterpriseAddress != null) {
    enterpriseInformationEntityEntity.enterpriseAddress = enterpriseAddress;
  }
  final String? creditCode = jsonConvert.convert<String>(json['creditCode']);
  if (creditCode != null) {
    enterpriseInformationEntityEntity.creditCode = creditCode;
  }
  final String? registeredCapital = jsonConvert.convert<String>(json['registeredCapital']);
  if (registeredCapital != null) {
    enterpriseInformationEntityEntity.registeredCapital = registeredCapital;
  }
  final String? securityManager = jsonConvert.convert<String>(json['securityManager']);
  if (securityManager != null) {
    enterpriseInformationEntityEntity.securityManager = securityManager;
  }
  final String? securityManagerNumber = jsonConvert.convert<String>(json['securityManagerNumber']);
  if (securityManagerNumber != null) {
    enterpriseInformationEntityEntity.securityManagerNumber = securityManagerNumber;
  }
  final String? enterpriseWeb = jsonConvert.convert<String>(json['enterpriseWeb']);
  if (enterpriseWeb != null) {
    enterpriseInformationEntityEntity.enterpriseWeb = enterpriseWeb;
  }
  final String? legalRepresentative = jsonConvert.convert<String>(json['legalRepresentative']);
  if (legalRepresentative != null) {
    enterpriseInformationEntityEntity.legalRepresentative = legalRepresentative;
  }
  final String? legalRepresentativeNumber = jsonConvert.convert<String>(json['legalRepresentativeNumber']);
  if (legalRepresentativeNumber != null) {
    enterpriseInformationEntityEntity.legalRepresentativeNumber = legalRepresentativeNumber;
  }
  final int? industryId = jsonConvert.convert<int>(json['industryId']);
  if (industryId != null) {
    enterpriseInformationEntityEntity.industryId = industryId;
  }
  final String? industryName = jsonConvert.convert<String>(json['industryName']);
  if (industryName != null) {
    enterpriseInformationEntityEntity.industryName = industryName;
  }
  final String? businessLicense = jsonConvert.convert<String>(json['businessLicense']);
  if (businessLicense != null) {
    enterpriseInformationEntityEntity.businessLicense = businessLicense;
  }
  final String? businessTermStart = jsonConvert.convert<String>(json['businessTermStart']);
  if (businessTermStart != null) {
    enterpriseInformationEntityEntity.businessTermStart = businessTermStart;
  }
  final String? businessTermEnd = jsonConvert.convert<String>(json['businessTermEnd']);
  if (businessTermEnd != null) {
    enterpriseInformationEntityEntity.businessTermEnd = businessTermEnd;
  }
  final int? businessTermRemind = jsonConvert.convert<int>(json['businessTermRemind']);
  if (businessTermRemind != null) {
    enterpriseInformationEntityEntity.businessTermRemind = businessTermRemind;
  }
  final int? businessRemindId = jsonConvert.convert<int>(json['businessRemindId']);
  if (businessRemindId != null) {
    enterpriseInformationEntityEntity.businessRemindId = businessRemindId;
  }
  final String? businessRemindName = jsonConvert.convert<String>(json['businessRemindName']);
  if (businessRemindName != null) {
    enterpriseInformationEntityEntity.businessRemindName = businessRemindName;
  }
  final String? securotyLicense = jsonConvert.convert<String>(json['securotyLicense']);
  if (securotyLicense != null) {
    enterpriseInformationEntityEntity.securotyLicense = securotyLicense;
  }
  final String? securotyTermStart = jsonConvert.convert<String>(json['securotyTermStart']);
  if (securotyTermStart != null) {
    enterpriseInformationEntityEntity.securotyTermStart = securotyTermStart;
  }
  final String? securotyTermEnd = jsonConvert.convert<String>(json['securotyTermEnd']);
  if (securotyTermEnd != null) {
    enterpriseInformationEntityEntity.securotyTermEnd = securotyTermEnd;
  }
  final int? securotyTermRemind = jsonConvert.convert<int>(json['securotyTermRemind']);
  if (securotyTermRemind != null) {
    enterpriseInformationEntityEntity.securotyTermRemind = securotyTermRemind;
  }
  final int? securotyRemindId = jsonConvert.convert<int>(json['securotyRemindId']);
  if (securotyRemindId != null) {
    enterpriseInformationEntityEntity.securotyRemindId = securotyRemindId;
  }
  final String? securotyRemindName = jsonConvert.convert<String>(json['securotyRemindName']);
  if (securotyRemindName != null) {
    enterpriseInformationEntityEntity.securotyRemindName = securotyRemindName;
  }
  final String? dangerLicense = jsonConvert.convert<String>(json['dangerLicense']);
  if (dangerLicense != null) {
    enterpriseInformationEntityEntity.dangerLicense = dangerLicense;
  }
  final String? dangerTermStart = jsonConvert.convert<String>(json['dangerTermStart']);
  if (dangerTermStart != null) {
    enterpriseInformationEntityEntity.dangerTermStart = dangerTermStart;
  }
  final String? dangerTermEnd = jsonConvert.convert<String>(json['dangerTermEnd']);
  if (dangerTermEnd != null) {
    enterpriseInformationEntityEntity.dangerTermEnd = dangerTermEnd;
  }
  final int? dangerTermRemind = jsonConvert.convert<int>(json['dangerTermRemind']);
  if (dangerTermRemind != null) {
    enterpriseInformationEntityEntity.dangerTermRemind = dangerTermRemind;
  }
  final int? dangerRemindId = jsonConvert.convert<int>(json['dangerRemindId']);
  if (dangerRemindId != null) {
    enterpriseInformationEntityEntity.dangerRemindId = dangerRemindId;
  }
  final String? dangerRemindName = jsonConvert.convert<String>(json['dangerRemindName']);
  if (dangerRemindName != null) {
    enterpriseInformationEntityEntity.dangerRemindName = dangerRemindName;
  }
  return enterpriseInformationEntityEntity;
}

Map<String, dynamic> $EnterpriseInformationEntityEntityToJson(EnterpriseInformationEntityEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['createTime'] = entity.createTime;
  data['companyId'] = entity.companyId;
  data['enterpriseName'] = entity.enterpriseName;
  data['enterpriseAddress'] = entity.enterpriseAddress;
  data['creditCode'] = entity.creditCode;
  data['registeredCapital'] = entity.registeredCapital;
  data['securityManager'] = entity.securityManager;
  data['securityManagerNumber'] = entity.securityManagerNumber;
  data['enterpriseWeb'] = entity.enterpriseWeb;
  data['legalRepresentative'] = entity.legalRepresentative;
  data['legalRepresentativeNumber'] = entity.legalRepresentativeNumber;
  data['industryId'] = entity.industryId;
  data['industryName'] = entity.industryName;
  data['businessLicense'] = entity.businessLicense;
  data['businessTermStart'] = entity.businessTermStart;
  data['businessTermEnd'] = entity.businessTermEnd;
  data['businessTermRemind'] = entity.businessTermRemind;
  data['businessRemindId'] = entity.businessRemindId;
  data['businessRemindName'] = entity.businessRemindName;
  data['securotyLicense'] = entity.securotyLicense;
  data['securotyTermStart'] = entity.securotyTermStart;
  data['securotyTermEnd'] = entity.securotyTermEnd;
  data['securotyTermRemind'] = entity.securotyTermRemind;
  data['securotyRemindId'] = entity.securotyRemindId;
  data['securotyRemindName'] = entity.securotyRemindName;
  data['dangerLicense'] = entity.dangerLicense;
  data['dangerTermStart'] = entity.dangerTermStart;
  data['dangerTermEnd'] = entity.dangerTermEnd;
  data['dangerTermRemind'] = entity.dangerTermRemind;
  data['dangerRemindId'] = entity.dangerRemindId;
  data['dangerRemindName'] = entity.dangerRemindName;
  return data;
}

extension EnterpriseInformationEntityEntityExtension on EnterpriseInformationEntityEntity {
  EnterpriseInformationEntityEntity copyWith({
    int? id,
    String? createTime,
    int? companyId,
    String? enterpriseName,
    String? enterpriseAddress,
    String? creditCode,
    String? registeredCapital,
    String? securityManager,
    String? securityManagerNumber,
    String? enterpriseWeb,
    String? legalRepresentative,
    String? legalRepresentativeNumber,
    int? industryId,
    String? industryName,
    String? businessLicense,
    String? businessTermStart,
    String? businessTermEnd,
    int? businessTermRemind,
    int? businessRemindId,
    String? businessRemindName,
    String? securotyLicense,
    String? securotyTermStart,
    String? securotyTermEnd,
    int? securotyTermRemind,
    int? securotyRemindId,
    String? securotyRemindName,
    String? dangerLicense,
    String? dangerTermStart,
    String? dangerTermEnd,
    int? dangerTermRemind,
    int? dangerRemindId,
    String? dangerRemindName,
  }) {
    return EnterpriseInformationEntityEntity()
      ..id = id ?? this.id
      ..createTime = createTime ?? this.createTime
      ..companyId = companyId ?? this.companyId
      ..enterpriseName = enterpriseName ?? this.enterpriseName
      ..enterpriseAddress = enterpriseAddress ?? this.enterpriseAddress
      ..creditCode = creditCode ?? this.creditCode
      ..registeredCapital = registeredCapital ?? this.registeredCapital
      ..securityManager = securityManager ?? this.securityManager
      ..securityManagerNumber = securityManagerNumber ?? this.securityManagerNumber
      ..enterpriseWeb = enterpriseWeb ?? this.enterpriseWeb
      ..legalRepresentative = legalRepresentative ?? this.legalRepresentative
      ..legalRepresentativeNumber = legalRepresentativeNumber ?? this.legalRepresentativeNumber
      ..industryId = industryId ?? this.industryId
      ..industryName = industryName ?? this.industryName
      ..businessLicense = businessLicense ?? this.businessLicense
      ..businessTermStart = businessTermStart ?? this.businessTermStart
      ..businessTermEnd = businessTermEnd ?? this.businessTermEnd
      ..businessTermRemind = businessTermRemind ?? this.businessTermRemind
      ..businessRemindId = businessRemindId ?? this.businessRemindId
      ..businessRemindName = businessRemindName ?? this.businessRemindName
      ..securotyLicense = securotyLicense ?? this.securotyLicense
      ..securotyTermStart = securotyTermStart ?? this.securotyTermStart
      ..securotyTermEnd = securotyTermEnd ?? this.securotyTermEnd
      ..securotyTermRemind = securotyTermRemind ?? this.securotyTermRemind
      ..securotyRemindId = securotyRemindId ?? this.securotyRemindId
      ..securotyRemindName = securotyRemindName ?? this.securotyRemindName
      ..dangerLicense = dangerLicense ?? this.dangerLicense
      ..dangerTermStart = dangerTermStart ?? this.dangerTermStart
      ..dangerTermEnd = dangerTermEnd ?? this.dangerTermEnd
      ..dangerTermRemind = dangerTermRemind ?? this.dangerTermRemind
      ..dangerRemindId = dangerRemindId ?? this.dangerRemindId
      ..dangerRemindName = dangerRemindName ?? this.dangerRemindName;
  }
}